#武器技能【疫病散播】
execute as @a[tag=xueya,scores={Wooden_sword0=1..}] at @s run function nw:yingxiong/1yingxiong/09yimo/skill/1yibingsanbo
execute as @a[scores={yimo5=5..}] at @s run function nw:yingxiong/1yingxiong/09yimo/skill/1yimozhixue
#被动技能【疫魔之血】不会受到中毒 凋零 虚弱
effect give @a[tag=xueya,nbt={ActiveEffects:[{Id:19b}]}] regeneration 3 1 true
effect clear @a[tag=xueya,nbt={ActiveEffects:[{Id:19b}]}] poison
effect give @a[tag=xueya,nbt={ActiveEffects:[{Id:20b}]}] saturation 2 1 true
effect clear @a[tag=xueya,nbt={ActiveEffects:[{Id:20b}]}] wither
effect give @a[tag=xueya,nbt={ActiveEffects:[{Id:18b}]}] slowness 2 0 true
effect clear @a[tag=xueya,nbt={ActiveEffects:[{Id:18b}]}] weakness

#主动技能【疫病狂风】
execute as @a[tag=xueya,scores={skEXBottle=1}] at @s run function nw:yingxiong/1yingxiong/09yimo/skill/2yibingkuangfeng
#主动技能【疫病狂风】二段：落地（前置）
scoreboard players set @a[tag=xueya,scores={skEXBottle=2,skCDPlayer=2}] skEXBottle 3
#主动技能【疫病狂风】二段：落地
execute as @a[tag=xueya,scores={skEXBottle=3}] at @s unless block ~ ~-0.1 ~ air run function nw:yingxiong/1yingxiong/09yimo/skill/2yibingkuangfeng2
#主动技能【疫病狂风】三段：【疫病突发】
execute as @a[tag=xueya,scores={skEXBottle=5}] at @s run function nw:yingxiong/1yingxiong/09yimo/skill/2yibingtufa
#主动技能【疫病狂风】CD
execute as @a[tag=xueya,scores={skCDEXBottle=0}] at @s run function nw:yingxiong/1yingxiong/09yimo/skill/2yibingkuangfeng_cd

#主动技能【疫魔索命】1
execute as @a[tag=xueya,scores={skEXBottle=3,skEgg=1..}] at @s run function nw:yingxiong/1yingxiong/09yimo/skill/3yimosuoming1
#主动技能【疫魔索命】2
execute as @a[tag=xueya,scores={skEgg=1..}] at @s run function nw:yingxiong/1yingxiong/09yimo/skill/3yimosuoming2
#主动技能【疫魔索命】CD
execute as @a[tag=xueya,scores={skCDEgg=0}] at @s run function nw:yingxiong/1yingxiong/09yimo/skill/3yimosuoming_cd

execute as @a[tag=xueya] at @s run title @s actionbar [{"text":"疫魔索命","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"正在冷却：","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"score":{"objective":"skCDEgg","name":"@s"},"color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 疫病狂风","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"正在冷却：","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"score":{"objective":"skCDEXBottle","name":"@s"},"color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]
